package com.mc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mc.model.Article;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);
    
    Article selectByPrimaryKeyAndCascade(Integer id);
    
    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
    
    List<Article> selectAll();
    
    List<Article> selectLimit(@Param("start")int start, @Param("size")int size);
    
    long count();
    
    //根据主菜单名称查找相关文章。
    List<Article> selectByMenuName(@Param("menuName")String menuName);
}